package org.lex.swing.widgets.console.demo;

import javax.swing.SwingUtilities;

public class WindowsShellConsole {
	public static void main(String[] args) {
		new WindowsShellConsole().startup();
	}

	private WindowsShellConsoleMainFrame mainFrame = null;

	public void startup() {
		System.out.println("Program startup");
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				getMainFrame().setLocationRelativeTo(null);
				getMainFrame().setVisible(true);
			}
		});
	}

	public WindowsShellConsoleMainFrame getMainFrame() {
		if (null == mainFrame) {
			mainFrame = new WindowsShellConsoleMainFrame();
		}
		return mainFrame;
	}
}
